package com.gitee.executor;

import java.nio.channels.Channel;

public class CommandContext
{
    private String commandName;
    
    private String[] args;
    
    private Channel remote;
    
    private boolean isHttp;
    
    private Object orginRequest;
    
    public CommandContext(String commandName)
    {
        this.commandName = commandName;
    }
    
    public CommandContext(String commandName, String[] args,boolean isHttp)
    {
        this.commandName = commandName;
        this.args = args;
        this.isHttp = isHttp;
    }

    public String getCommandName()
    {
        return commandName;
    }

    public void setCommandName(String commandName)
    {
        this.commandName = commandName;
    }

    public String[] getArgs()
    {
        return args;
    }

    public void setArgs(String[] args)
    {
        this.args = args;
    }

    public Channel getRemote()
    {
        return remote;
    }

    public void setRemote(Channel remote)
    {
        this.remote = remote;
    }

    public boolean isHttp()
    {
        return isHttp;
    }

    public void setHttp(boolean isHttp)
    {
        this.isHttp = isHttp;
    }

    public Object getOrginRequest()
    {
        return orginRequest;
    }

    public void setOrginRequest(Object orginRequest)
    {
        this.orginRequest = orginRequest;
    }
    
}
